﻿using AutoMapper;

using PLCS.App.Models;
using PLCS.Application.Contracts.PLCConfigApp.Dtos;
using PLCS.Application.Contracts.PLCReadDataApp.Dtos;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCS.App.Mapper
{
    public class AppProfile : Profile
    {
        public AppProfile()
        {
            CreateMap<PLCReadDataEditDto, PlcInterFaceDocModel>()
                 .ForMember(dest => dest.DataType, opt => opt.MapFrom(src => src.DataType.ToString()));
        }
    }
}